package com.yifang.yibingproject.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/*
 * @author  yht
 * @date  2021/3/2 0002 15:58
 * @Email:2742357125@qq.com
 */
@Data
@ApiModel("加盟商编辑DTO")
public class ForbiddenDTO implements Serializable {

    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("头像URL")
    private String avatar;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("手机号")
    private String mobile;


    @ApiModelProperty("注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("ip")
    private String ip;

    @ApiModelProperty("购买次数")
    private Integer buyTimes;

    @ApiModelProperty("消费总额")
    private BigDecimal costAmount;

    @ApiModelProperty("上次消费时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastCostTime;

    @ApiModelProperty("禁用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime forbiddenTime;

    @ApiModelProperty("禁用理由")
    private String forbiddenReason;

    @ApiModelProperty("记一笔个数")
    private int remarkCount;
}
